package top.kaoshanji.p1ch01a;

/**
 * 代码清单-p1ch01a-6页a：骑士只能执行拯救少女的任务
 * DamselRescuingKnight 只能执行 RescueDamselQuest 探险任务
 * @author kaoshanji
 * ^_^
 * create time 2025/4/21 22:14
 */
public class DamselRescuingKnight implements Knight {

    private RescueDamselQuest quest;

    public DamselRescuingKnight() {
        this.quest = new RescueDamselQuest();
    }

    @Override
    public void embarkOnQuest() {
        quest.embark();
    }

}
